home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / xml-core / examples / foo.prerm < prev    next >
Encoding:
Text File  |  2007-03-10  |  1.1 KB  |  36 lines

  1. #!/bin/sh
  2. ## ----------------------------------------------------------------------
  3. ## debian/prerm: preremoval script for foo
  4. ## ----------------------------------------------------------------------
  5.  
  6. ## ----------------------------------------------------------------------
  7. ## Abort if any command returns an error value
  8. set -e
  9.  
  10. ## --------------------------------------------------------------
  11. ## Remove XML catalog entries
  12. if [ "$1" = "remove" -o "$1" = "upgrade" ]
  13. then
  14.  
  15.     update-xmlcatalog --verbose --add --root --type public \
  16.         --id "-//FOO//DTD FOO//EN"
  17.  
  18.     update-xmlcatalog --verbose --add --root --type system \
  19.         --id "http://www.foo.org/foo/foo.dtd"
  20.  
  21.     update-xmlcatalog --verbose --add --package foo --type public \
  22.         --id "-//FOO//DTD FOO//EN"
  23.  
  24.     update-xmlcatalog --verbose --add --package foo --type system \
  25.         --id "http://www.foo.org/foo/foo.dtd"
  26.  
  27. fi
  28.  
  29. ## ----------------------------------------------------------------------
  30. ## Automatically added sections
  31. #DEBHELPER#
  32.  
  33. exit 0
  34.  
  35. ## ----------------------------------------------------------------------
  36.